package com.wms.service.Impl;

import com.wms.entity.WmsRole;
import com.wms.entity.WmsRoleMenu;
import com.wms.mapper.RoleMenuMapper;
import com.wms.service.RoleMenuService;
import com.wms.service.RoleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class RoleMenuServiceImpl implements RoleMenuService {
    @Autowired
    private RoleMenuMapper roleMenuMapper;
    @Override
    public List<WmsRoleMenu> findAllByRole(WmsRole role) {
        List<WmsRoleMenu> roleMenus = roleMenuMapper.findAllByRole(role);
        return roleMenus;
    }
}
